<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>活动信息</h2>
    </div>

    <div class="cf">
        <div class="fl">
            <notempty name="lists">
            <a id="add-group" class="btn" href="{:U('commodity?id='.$id)}">查看全部秒杀活动商品</a>

        </div>
    </div>



    <!--店铺列表-->
    <div class="data-table table-striped">
        <table class="">
            <thead>
            <tr>
                <th class="row-selected row-selected"><input class="check-all" type="checkbox"></th>
                <th>店铺ID</th>
                <th>店铺名称</th>
                <th>店铺等级</th>
                <th>报名时间</th>
                <th>上传商品数</th>
                <th>状态</th>
                <th width="140" class="text-center">操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="lists">
                <volist name="lists" id="vo">
                    <tr class="status_trclass_{$vo.status}">
                        <td><input class="ids" type="checkbox" name="ids[]" value="{$vo.id}" /></td>
                        <td>{$vo.store_id}</td>
                        <td><a href="{:U('Admin/Store/detail?member_id='.$vo['member_id'])}" >{$vo.store_name}</a></td>
                        <td>
                            
                            <if condition="$vo['grade_id'] eq 2">
                                <span class="text-success">白金店铺</span>
                                <else/>
                                <if condition="$vo['grade_id'] eq 3">
                                    <span class="text-success">普通店铺</span>
                                    <else/>
                                    <if condition="$vo['grade_id'] eq 1">
                                        <span class="text-success">钻石店铺</span>

                                    </if>
                                </if>
                            </if>


                        </td>
                        <td>{:time_format($vo['create_time'], 'Y-m-d H:i:s')}</td>
                        <td>{$vo.item_num}件</td>


                        <td >

                            <if condition="$vo['status'] eq 2">
                                <span class="text-success">待审核</span>
                                <else/>
                                <if condition="$vo['status'] eq 1">
                                    <span class="text-success">报名成功</span>
                                    <else/>
                                    <if condition="$vo['status'] eq 3">
                                        <span class="text-cancel">已驳回</span>

                                    </if>
                                </if>
                            </if>
                        </td>
                        <td class="text-center">
                                <a href="{:U('setStatus?status=1&ids='.$vo['id'])}" class="ajax-get">[通过]</a>
                                <a href="{:U('setStatus?status=3&ids='.$vo['id'])}" class="ajax-get">[驳回]</a>
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="12" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>

    </div>
    <div class="page">
        {$_page}
    </div>

    </div>


    </div>




    <!--/店铺列表-->



</block>

<block name="script">
    <script language="javascript" type="text/javascript" src="__PUBLIC__/Admin/js/My97Date/WdatePicker.js"></script>
    <script type="text/javascript" charset="utf-8">
        //导航高亮
        highlight_subnav('{:U('index')}');
        Core.setValue('type', '{:I('get.type', '')}');
        //时间选择
        $('.date_select').focus(function(){
            WdatePicker({skin: 'twoer', dateFmt: 'yyyy-MM-dd', maxDate: '%y-%M-%d'});
        });
    </script>
</block>
